Page({
  data: {
    visitorList: []
  },
  onLoad() {
    this.getList()
  },
  /**
   * 获取访问者列表
   */
  async getList() {
    const { data } = await wx.http.get('/visitor')
    this.setData({
      visitorList: data.rows
    })
  },
  goPassport(e) {
    wx.navigateTo({
      url: '/visitor_pkg/pages/passport/index?id=' + e.mark.id,
    })
  },
})
